<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>

<body>
<script language="javascript">

	function emptyCheck()
	{
		if ( (document.frmChgPass.txtMK1.value == "") ||
			 (document.frmChgPass.txtMK2.value == "")	)
		
			document.frmChgPass.subOK.disabled = true;
		
		else
			document.frmChgPass.subOK.disabled = false;
	}

</script>

<h4>Đổi mật khẩu mới</h4>

<form method="post" action="doi_mk.php" name="frmChgPass">
	<ul>
		<li>
			<span>Mật khẩu</span>
			<input type="password" name="txtMK1" onkeyup="emptyCheck();">
		</li>
		<li>
			<span>Nhập lại mật khẩu</span>
			<input type="password" name="txtMK2" onkeyup="emptyCheck();">
		</li>
		<?php
			if (!isset($_GET['error']))
				$_GET['error'] = "none";
	
			if ($_GET['error'] == "umpass")
				echo '<li><span class="error">Mật khẩu không khớp</span></li>';
		?>
	
		<li><input type="submit" name="subOK" value="OK" disabled="true"></li>
	</ul>
</form>
</body>

</html>
